package unversioned;

/**
 * Oct 23, 2017
 */
public class Test {

//    public static void main(String[] args) {
//        int i = 0;
//        int p;
//        i = i++;
//        System.out.println(i);
//    }

    public static void main(String[] args) {
        StringBuffer a = new StringBuffer("A");
        StringBuffer b = new StringBuffer("B");
        operate(a, b);
        System.out.println(a + ", " + b);

        Byte b1 = 1, b2 = 2;
        //[error]: Found: int (Byte operate will upward cast to int)
        //Byte b3 = b1 + b2;

    }

    public static void operate(StringBuffer x, StringBuffer y) {
        x.append(y);
        y = x;
    }

    public void a() {
        b();
        this.b();
    }

    public void b() {

    }
}
